package com.becca.cake.dao.system;

import java.util.Map;

import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Repository;

/**
 * 员工角色DAO
 * @author hejinguo
 * @version $Id: AdminRoleDAO.java, v 0.1 2015-12-17 下午08:02:43
 */
@Repository
public interface AdminRoleDAO {
    /**
     * 根据角色ID删除员工角色表信息
     * @author hejinguo
     * @param ids
     * @throws DataAccessException
     */
    void deleteAdminRoleById(String ids) throws DataAccessException;

    /**
     * 根据员工ID删除员工角色表信息
     * @author hejinguo
     * @param adminId
     * @throws DataAccessException
     */
    void deleteAdminRoleByAdminId(String adminId) throws DataAccessException;

    /**
     * 添加员工角色信息
     * @author hejinguo
     * @param map
     * @throws DataAccessException
     */
    void insertAdminRole(Map<String, Object> map) throws DataAccessException;

}
